package com.woniu.cms.goods.core.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
@ApiModel(value = "领料材料Vo对象")
public class OutbillVo implements Serializable {

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("领料单编号")
    private String outbillCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("领料时间")
    private Date outTime;

    @ApiModelProperty("分包单位")
    private String subcontractor;

    @ApiModelProperty("工程名称（从所引用的入库单/缴回单生成）")
    private String projectName;

    @ApiModelProperty("物资编号")
    private String goodsCode;

    @ApiModelProperty("物资名称")
    private String goodsName;

    @ApiModelProperty("单位")
    private String outbillUnit;

    @ApiModelProperty("入库数量")
    private BigDecimal outbillNum;

    @ApiModelProperty("单价")
    private BigDecimal outbillPrice;

    @ApiModelProperty("0-未提交，1-已提交（审批中），2-审批通过，3-已驳回")
    private Integer status;

}
